<script type='text/javascript' src='${base}/dwr/engine.js'></script>
<script type='text/javascript' src='${base}/dwr/util.js'></script>
<script type='text/javascript' src='${base}/dwr/interface/backUserService.js'></script>

<script type="text/javascript">

	function closerparent(){
	    parent.floatboxclose(false);
	}
	
	function clearForm(){
		j("#reset").click();
	}
	
	function checkForm(){
		if(j.trim(j("#nickname")).length ==0){
			alert("用户昵称不能为空");
			return;
		}
		
		var callBack=function(o){
			parent.addNewUserSuccess(o,"修改");
			closerparent();
		}
		var newBackUser={
				"nickname":j.trim(j("#nickname").val())
			};
		backUserService.editBackUserDWR(newBackUser,"${backUser.id?if_exists}",callBack)
	}
</script>


<div class="container" id="cpcontainer">
<div class="close"></div>
<div class="itemtitle"><h3>编辑用户信息</h3></div>
<form>
<table border="0" class="tb tb2" >
	<tr>
		<td class=td21>用户编号：</td>
		<td>${backUser.backuserNo?if_exists}</td>
	</tr>
	<tr>
		<td class=td21>用户账号：</td>
		<td>${backUser.loginName?if_exists}</td>
	</tr>
	<tr>
		<td class=td21>用户昵称：</td>
		<td><input type="text" value="${backUser.nickname?if_exists}" id="nickname"></td>
	</tr>
	<tr>
		<td colspan="3">
			<INPUT type="button"  value="     修改     " onclick ="checkForm()"/>&nbsp;&nbsp;
			<INPUT type="button"  value="     重置     " onclick ="clearForm()"/>&nbsp;&nbsp;
			<INPUT type="button"  value="     取消     " onclick ="closerparent()"/>
			<input type="reset" id="reset" style="display: none"> 
		</td>
	</tr>
</table>
</form>

</div>